package com.younion.dao;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.younion.common.base.BaseDAO;
import com.younion.common.exception.BaseException;

public class CommonDelDAO extends BaseDAO {
	
	protected static final Log logger = LogFactory.getLog(CommonDelDAO.class);
	
	public String getRefCount(String sql) throws BaseException {
		try {
			Object obj = this.getSqlMapClient().queryForObject("t_common_del.getRefCount", sql);
			return obj.toString();
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			throw new BaseException(this.getClass().getSimpleName() +" method error");
		}
	}

}
